//
//  NavigationControllerDelegate.m
//  us
//
//  Created by karry on 2025/3/31.
//

#import "NavigationControllerDelegate.h"

@implementation NavigationControllerDelegate


- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
                                       animationControllerForOperation:(UINavigationControllerOperation)operation
                                       fromViewController:(UIViewController *)fromVC
                                       toViewController:(UIViewController *)toVC {
    if (operation == UINavigationControllerOperationPush) {
        PushTransitionAnimator *animator = [[PushTransitionAnimator alloc] init];
        animator.sourceViews = self.sourceViews;
        animator.destinationViews = self.destinationViews;
        return animator;
    }
    return nil;
}

@end
